﻿@page "/install-wasm"
@inject IStringLocalizer<Install_wasm> Localizer

<InstallContent Title="@Localizer["Title"]" HostFile="wwwroot/index.html">
<Pre>public class Program
{
    public static async Task Main(string[] args)
    {
        var builder = WebAssemblyHostBuilder.CreateDefault(args);
        builder.RootComponents.Add&lt;App&gt;("app");
        builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

        // @Localizer["CodeComment"]
        <b><i>builder.Services.AddBootstrapBlazor();</i></b>

        var host = builder.Build();

        // @Localizer["CodeComment"]
        <b><i>host.Services.RegisterProvider();</i></b>

        await host.RunAsync();
    }
}</Pre>
</InstallContent>
